package com.kun.gulimall.order.service.impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.kun.gulimall.order.domain.Order;
import com.kun.gulimall.order.service.OrderService;
import com.kun.gulimall.order.mapper.OrderMapper;
import com.kun.gulimall.util.PageUtils;
import com.kun.gulimall.util.Query;
import org.springframework.stereotype.Service;

import java.util.Map;

@Service
public class OrderServiceImpl extends ServiceImpl<OrderMapper, Order>
        implements OrderService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<Order> page = this.page(new Query<Order>().getPage(params));
        return new PageUtils(page);
    }
}




